package com.hb.trans.mvp.contract

import android.graphics.Bitmap
import com.basiclib.inter.IModel
import com.basiclib.inter.IMvpView
import com.hb.trans.bean.Base
import com.hb.trans.bean.Student
import io.reactivex.Observable
import okhttp3.ResponseBody

interface TransCheckLoginContract {

    interface View : IMvpView {
        fun finishSelf()
        fun loginSucess()
        fun setSecurityImage(bitmap: Bitmap)
    }


    interface Model : IModel {

        fun login(
            phone: String,
            cardCode: String,
            carType: String,
            verifyCode: String,
            key: String
        ): Observable<Base<Student>>

        fun securityCode(key: String): Observable<ResponseBody>
    }
}